Skip to content

Remove torchdata==0.9.0 pin and torchtext as deprecated (#4849) #4860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 8, 2025

Conversation

anmyachev
Copy link
Contributor

@anmyachev anmyachev commented Aug 7, 2025

This is a prerequisite for adding the next commits to enable python3.13 and 3.14 wheel builds:

anmyachev and others added 2 commits August 7, 2025 10:19
@@ -35,5 +35,5 @@ apply_patch() {
echo "Applying PyTorch patches in $REPO_ROOT"

# put your patch applies here
apply_patch https://github.com/pytorch/pytorch/pull/143553.diff
# apply_patch https://github.com/pytorch/pytorch/pull/143553.diff
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code takes changes online and is now incompatible with the old Pytorch. Considering that it is only needed for our dev CI, I think it is ok to disable this patch so as not to change PyTorch version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand, why we no longer need changes from pytorch/pytorch#143553? Are we able to perform flex attention testing without?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to perform flex attention testing without?

No, but it's not needed for PyTorch 2.8 (note: the changes will be merged into release/3.4.x branch). The idea is to make changes (only needed for wheel build) that PyTorch can accept without acceptance testing.

The next step is to update Triton pin in PyTorch using our main branch. With changes for Flex Attn etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icic, didn't notice the base of this PR is release/3.4.0

@anmyachev anmyachev marked this pull request as ready for review August 7, 2025 16:01
etiotto
etiotto previously approved these changes Aug 7, 2025
…n reduce test case (#7470)

Our CI hit an overflow issue in reduce test case with Triton
Interpreter.

```
FAILED language/test_core.py::test_reduce1d[4-1-1-sum-int32-32] - triton.runtime.errors.InterpreterError: InterpreterError("OverflowError('Python integer -4736833654 out of bounds for int32')")
FAILED language/test_core.py::test_reduce1d[4-1-1-sum-int32-64] - triton.runtime.errors.InterpreterError: InterpreterError("OverflowError('Python integer -17340316748 out of bounds for int32')")
FAILED language/test_core.py::test_reduce1d[4-1-1-sum-int32-128] - triton.runtime.errors.InterpreterError: InterpreterError("OverflowError('Python integer -15950412024 out of bounds for int32')")
FAILED language/test_core.py::test_reduce1d[4-1-1-sum-int32-512] - triton.runtime.errors.InterpreterError: InterpreterError("OverflowError('Python integer 6080852592 out of bounds for int32')")
```

There is a comment in the test_reduce1d about limiting the range of
Integers in case overflow but without actual code.
Add the limitation as the comment.

---------

Signed-off-by: Lu,Chengjun <[email protected]>
Co-authored-by: Thomas Raoux <[email protected]>
(cherry picked from commit f4a9d54)
@anmyachev
Copy link
Contributor Author

Ready for review

Copy link
Contributor

@etiotto etiotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anmyachev the PR removes the dependency on the torchtext package, but only in the release branch. Why not also remove the dependency in the main branch ?

@etiotto etiotto requested a review from kwasd August 7, 2025 21:58
@whitneywhtsang whitneywhtsang self-requested a review August 7, 2025 22:07
@whitneywhtsang
Copy link
Contributor

@anmyachev the PR removes the dependency on the torchtext package, but only in the release branch. Why not also remove the dependency in the main branch ?

icic, it is removed in 5f95a17.

@anmyachev
Copy link
Contributor Author

@anmyachev the PR removes the dependency on the torchtext package, but only in the release branch. Why not also remove the dependency in the main branch ?

icic, it is removed in 5f95a17.

All changes here, except disabling the application of Flex Attn patch are also in the main branch.

@anmyachev anmyachev enabled auto-merge (squash) August 8, 2025 07:16
@anmyachev anmyachev disabled auto-merge August 8, 2025 07:17
@anmyachev anmyachev enabled auto-merge (squash) August 8, 2025 07:18
@anmyachev anmyachev requested a review from dchigarev August 8, 2025 07:18
@anmyachev anmyachev merged commit 7527cb8 into release/3.4.x Aug 8, 2025
14 checks passed
@anmyachev anmyachev deleted the amyachev/cherry-pick0 branch August 8, 2025 07:20
anmyachev added a commit that referenced this pull request Aug 8, 2025
…xes (#4849) (#4860)

This is a prerequisite for adding the next commits to enable python3.13
and 3.14 wheel builds:
*
74f98d2
3.13
*
83341cf
3.14 lin
* #4858 3.14
win

---------

Signed-off-by: Anatoly Myachev <[email protected]>
(cherry picked from commit 7527cb8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants